<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>transform-style</title>

    <style type="text/css">
        .wrapper {
            position: relative;
            width: 300px;
            height: 300px;
            background: #6666fa;
            margin: 50px;
        }
        
        .wrapper>.inner {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: #fa6666;
        }
        
        .first {
            transform: perspective(500px) rotateY(45deg);
            transform-style: flat;/* 平面 */
        }
        
        .first>.inner {
            transform: rotateX(45deg);
        }
        
        .second {
            transform: perspective(500px) rotateY(-80deg);
            transform-style: preserve-3d;/* 3D */
        }
        
        .second>.inner {
            transform: rotateX(45deg);
        }
    </style>

</head>

<body>

    <div class="wrapper first">
        <div class="inner"></div>
    </div>

    <div class="wrapper second">
        <div class="inner"></div>
    </div>

</body>

</html>